﻿using System;

namespace Ersur
{
    public partial class Login : DevExpress.XtraEditors.XtraForm
    {

        public Login()
        {
            InitializeComponent();
        }

        private void txtPassword_TextChanged(object sender, EventArgs e)
        {
            if (txtPassword.Text == "rusre")
            {
                btnClear.Enabled = true;
                btnClear.Focus();
            }

            else
                btnClear.Enabled = false;
        }
       
        private void Login_Load(object sender, EventArgs e)
        {
            if (Environment.MachineName.ToLower() == "kgulcan")
            {
                btnClear.Enabled = true;
                btnClear.PerformClick();
            }
        }      
    }
}